package com.jwt.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jwt.server.domain.UserInfo;
import com.jwt.server.mapper.UserMapper;
import com.jwt.server.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper  usermapper;
	
	@Override
	public UserInfo findByUsername(String username) {
		return usermapper.findByUsername(username);
	}

	@Override
	public UserInfo save(UserInfo user) {
		return usermapper.save(user);
	}

}
